package xyz.xiaoshengfu.xrpc.config;

import java.io.Serializable;

/**
 * <p>Title: ProviderServiceInfor</p>
 * <p>Description: 服务提供者服务信息</p>
 * @author xiaoshengfu(2439323118@qq.com)
 * @date 2020年3月20日
 */
public class ProviderServiceInfor implements Serializable {

	private static final long serialVersionUID = 1L;

	public static final int INIT = 0;
	public static final int OK = 1;
	public static final int TIMEOUT = 2;
	public static final int DISCONNECT = 3;
	public static final int ERROR = 4;

	private Integer serverState;
	private String providerAddress;
	private Integer providerPort;
	private String applicationName;
	private ServiceBean serviceBean;

	public ProviderServiceInfor() {
		super();
	}

	public ProviderServiceInfor(Integer serverState, String providerAddress, Integer providerPort,
			String applicationName) {
		super();
		this.serverState = serverState;
		this.providerAddress = providerAddress;
		this.providerPort = providerPort;
		this.applicationName = applicationName;
	}

	public ProviderServiceInfor(Integer serverState, String providerAddress, Integer providerPort,
			String applicationName, ServiceBean serviceBean) {
		super();
		this.serverState = serverState;
		this.providerAddress = providerAddress;
		this.providerPort = providerPort;
		this.applicationName = applicationName;
		this.serviceBean = serviceBean;
	}

	public Integer getServerState() {
		return serverState;
	}

	public void setServerState(Integer serverState) {
		this.serverState = serverState;
	}

	public String getProviderAddress() {
		return providerAddress;
	}

	public void setProviderAddress(String providerAddress) {
		this.providerAddress = providerAddress;
	}

	public Integer getProviderPort() {
		return providerPort;
	}

	public void setProviderPort(Integer providerPort) {
		this.providerPort = providerPort;
	}

	public String getApplicationName() {
		return applicationName;
	}

	public void setApplicationName(String applicationName) {
		this.applicationName = applicationName;
	}

	public ServiceBean getServiceBean() {
		return serviceBean;
	}

	public void setServiceBean(ServiceBean serviceBean) {
		this.serviceBean = serviceBean;
	}

	@Override
	public String toString() {
		return "ProviderServiceInfor [serverState=" + serverState + ", providerAddress=" + providerAddress
				+ ", providerPort=" + providerPort + ", applicationName=" + applicationName + ", serviceBean="
				+ serviceBean + "]";
	}

}
